//
//  CTVUtil.h
//  mediabridge
//
//  Created by Bruno Keymolen on 21/08/07.
//  Copyright 2007 channl.tv. All rights reserved.
//

#import <Cocoa/Cocoa.h>



@interface CTVUtil : NSObject {

}
+(long)fileSize:(FILE*)f;

+(BOOL)parseHTTPHeaderContentLength:(NSString*)lengthString resultSize:(int*)size;
+(BOOL)parseHTTPHeaderContentRange:(NSString*)rangeString resultRange:(NSRange*)range resultSize:(int*)size;
+(BOOL)parseHTTPHeaderRange:(NSString*)rangeString resultRange:(NSRange*)range;
+(NSString*)findFileTypeExtensionForUrlString:urlString andHeaderData:(NSData*)data;
+(NSString*)getTimeRepresentationString:(int)sec fullDetail:(BOOL)fulldetail fullNames:(BOOL)fullnames;
+(int)getLastOccurenceOfChar:(char)character inString:(NSString*)string;
+(NSUserDefaults*)userDefaults;

//+(id)playClipControllerForURLString:(NSString*)urlString andScene:(id)scene;				

	
@end
